<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- Meta, title, CSS, favicons, etc. -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>项目明细</title>
<style>
th{text-align:center}
.date.form_date{
 padding: 5px;
 width: 106px;
}
.dataTables_wrapper{
 padding-top: 15px;
}
</style>
</head>
<body class="nav-md">
	<!-- /top navigation -->
	<!-- page content -->
	<div class="">
		<div class="row">
			<div class="col-md-12 col-sm-12 col-xs-12">
				<div class="x_panel">
					<div class="x_title">
						<h3>项目明细</h3>
						<div class="clearfix"></div>
					</div>
					<div class="x_content">
						<ul id="myTab1" class="nav nav-tabs bar_tabs" role="tablist">
							<li role="presentation" class="[#if type==1]active[/#if]"><a
								href="javascript:void(0)"
								onclick="pjaxContent('/project/detail?type=1')">询价列表</a></li>
							<li role="presentation" class="[#if type==2]active[/#if]"><a
								href="javascript:void(0)"
								onclick="pjaxContent('/project/detail?type=2')">报价列表</a></li>
							<li role="presentation" class="[#if type==3]active[/#if]"><a
								href="javascript:void(0)"
								onclick="pjaxContent('/project/detail?type=3')">询价排名</a></li>
							<li role="presentation" class="[#if type==4]active[/#if]"><a
								href="javascript:void(0)"
								onclick="pjaxContent('/project/detail?type=4')">报价排名</a></li>
							<li role="presentation" class="[#if type==5]active[/#if]"><a
								href="javascript:void(0)"
								onclick="pjaxContent('/project/detail?type=5')">询价金额</a></li>
						</ul>

						<input type="hidden" id="so_eid" value="${so_eid!}" />

						[#if type < 5]
						<!-- 时间 -->
						<div style="display: inline-block;">
							[#if type < 3]
							<label id="labelTimeName"   style="padding-top:8px;padding-right:10px">[#if type == 1]发布日期[#else]报价日期[/#if]：</label>
							<div class="controls input-append date form_date" data-date=""
								data-date-format="dd MM" data-link-field="dtp_input1"
								data-link-format="yyyy-mm" style="margin-right: 3px;">
								<span class="add-on"><i class="icon-th"></i></span> <input id="so_startTime" name="so_startTime"
									size="16" type="text" value="[#if so_startTime??]${so_startTime!}[/#if]" readonly style="width: 76px">
							</div>
							— 
							<div class="controls input-append date form_date" data-date=""
								data-date-format="dd MM" data-link-field="dtp_input2"
								data-link-format="yyyy-mm">
								<span class="add-on"><i class="icon-th"></i></span> <input id="so_endTime" name="so_endTime" style="width: 76px"
																						   size="16" type="text" value="[#if so_endTime??]${so_endTime!}[/#if]" readonly>
							</div>
							&nbsp;
							<label>询价名称：</label>
							<div style="    display: inline-block; vertical-align: middle; margin-left: 5px;width: 120px;">
								<input name="so_enquiryName" id="so_enquiryName" value="[#if so_enquiryName??]${so_enquiryName!}[/#if]" class="form-control" type="text" placeholder="询价名称"> <span
									class="input-group-btn">
								</span>
							</div>
							[/#if]
							&nbsp;
							<label>[#if type == 1]询价公司[#elseif type == 3]采购商[#elseif type == 4]供应商[#else]询报价公司[/#if]：</label>
							<div style="    display: inline-block; vertical-align: middle; margin-left: 5px;width: 120px;">
								<input name="so_companyName" id="so_companyName" value="[#if so_companyName??]${so_companyName!}[/#if]" class="form-control" type="text" placeholder="[#if type == 1]询价公司[#elseif type == 3]采购商[#elseif type == 4]供应商[#else]询报价公司[/#if]"> <span
									class="input-group-btn">
								</span>
							</div>
						</div>
						[/#if]



						<div style="float:right">
							<div class="form-group">
							[#if type <= 5]
								[#if type < 5]
								<button type="button" onclick="search();" class="btn btn-primary">搜索</button>
								<button type="button" onclick="reset();" class="btn btn-danger">重置</button>
								[/#if]
							  <button type="submit" id="outexcel" onclick="exportExcel();" class="btn btn-success">导出EXCEL</button>
							[/#if]
								[#if type = 6]
									<button type="button" onclick="back(1);" class="btn btn-danger">返回</button>
								[/#if]
							</div>
						</div>
						<input type="hidden" id="type" value="${type!}">
						<table id="datatable" class="table table-striped table-bordered">
							<thead>
								[#if type==1]
								<tr>
									<th>项目名称</th>
									<th>询价单位</th>
									<th>询价名称</th>
									<th>询价日期</th>
									<th>状态</th>
									<th>报价次数</th>
									<th>下单次数</th>
									<th>浏览次数</th>
								</tr>
								[/#if] 
								[#if type==2]
								<tr>
								    <th>项目名称</th>
									<th>询价名称</th>
									<th>询价公司</th>
									<th>报价公司</th>
									<th>报价时间</th>
									<!--<th>报价金额</th>-->
									<th>是否下单</th>
									<th>报价状态</th>
								</tr>
								[/#if]
								[#if type==3]
								<tr>
								    <th>序号</th>
								    <th>采购商</th>
									<th>发布数量</th>
									<th>被报价数量</th>
								</tr>
								[/#if]
								[#if type==4]
								<tr>
								    <th>序号</th>
								    <th>供应商</th>
									<th>发布数量</th>
								</tr>
								[/#if]
								[#if type==5]
								<tr>
								    <th>月份</th>
								    <th>询价金额</th>
								</tr>
								[/#if]
								[#if type==6]
								<tr>
								    <th>身份</th>
								    <th>手机号</th>
								    <th>邮箱</th>
								    <th>真实姓名</th>
								    <th>企业</th>
								    <th>浏览时间</th>
								</tr>
								[/#if]
							</thead>
						</table>
					</div>
				</div>
			</div>

		</div>
	</div>
	<!-- /page content -->

	<!-- userdataTable -->
	<script src="/res/build/js/project/detail.js"></script>
</body>
</html>